package com.zmn.plat.common.dto.product.tariff.brand;

import com.zmn.plat.common.dto.product.tariff.base.BaseTariffProductDIO;
import lombok.Data;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

/**
 * @author tanbiao
 * @description：根据产品二级分类查询品牌输入实体
 * @modifier
 * @since 2019/11/22 9:40
 **/
@Data
@Valid
@ToString(callSuper = true)
public class TariffBrandFactorDIO extends BaseTariffProductDIO {
    private static final long serialVersionUID = -162148310773987869L;
    /**
     * 计价器服务分类ID
     */
    @NotNull(message = "servCategId不能为空")
    @Positive(message = "servCategId必须为大于0的正整数")
    private Integer servCategId;

    /**
     * 计价器产品一级分类ID
     */
    @NotNull(message = "categOneId不能为空")
    @Positive(message = "categOneId必须为大于0的正整数")
    private Integer categOneId;

    /**
     * 计价器产品二级分类Id
     */
    @NotNull(message = "categTwoId不能为空")
    @Positive(message = "categTwoId必须为大于0的正整数")
    private Integer categTwoId;

    /**
     * 页码
     */
    @Positive(message = "pageNum必须为大于0的正整数")
    private Integer pageNum;

    /**
     * 页面数据行数大小
     */
    @Positive(message = "pageSize必须为大于0的正整数")
    @Max(value = 500,message = "pageSiz最大500")
    @Min(value = 1,message = "pageSiz最小1")
    private Integer pageSize;

}
